package com.dt.common.validation.impl;

import com.dt.common.validation.Violation;
import com.dt.common.validation.itf.ValidationDefinition;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@EqualsAndHashCode(of = { "validationDefinition" })
public class DefaultViolation implements Violation {

	private String msg;

	private Object checkedBean;

	private Object invalidValue;

	private ValidationDefinition validationDefinition;

	public DefaultViolation(ValidationDefinition validationDefinition) {
		this.validationDefinition = validationDefinition;
	}

}
